package cn.itsource.mapper;
import cn.itsource.pojo.vo.CategoryVo;
import cn.itsource.pojo.vo.NewItemVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

import cn.itsource.my.MyBaseMapper;
import cn.itsource.pojo.Category;
import org.apache.ibatis.binding.MapperMethod;

public interface CategoryMapper extends MyBaseMapper<Category> {

    List<Category> findAllByType(@Param("type")Integer type);

    List<CategoryVo> getSubCatList(Integer rootCatId);

    List<NewItemVo> querySixNewItemsLazy(@Param("paramsMap") Map<String, Object> map);
}